package org.agridata.akvisualization.controller;

import org.agridata.akvisualization.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.xml.transform.Result;

@RestController
@RequestMapping("test")
public class TestController {
    @Autowired
    private TestService service;

    @PostMapping("test1")
    public Result result(){
        return service.select();
    }
}
